package com.yao.sys.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yao.sys.entity.MenuEntity;
import lombok.Data;

import java.util.List;

/**
 * 菜单表
 *
 * @author autoCode
 * @version 1.0.0-SNAPSHOT
 * @date 2020-03-23
 */
@Data
@TableName("sys_menu")
public class MenuDto extends MenuEntity {

    @TableField(exist = false)
    private List<MenuDto> child;

    @Override
    public String toString() {
        return super.toString() + getChild();
    }
}